package com.oneandone.mamba.mc.model;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;

@Entity
public class Employee extends BaseEntity {

	@ManyToOne
	@JoinColumn(name = "departament_id", nullable = false)
	private Department department;

	@OneToMany
	private Set<Role> roles;
	private Set<Operation> operationsHistory;

	@OneToOne
	@JoinColumn(name = "contact_data_id")
	private ContactData contactData;

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Set<Role> getRoles() {
		return this.roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public Set<Operation> getPerformedOperations() {
		return this.operationsHistory;
	}

	public void setPerformedOperations(Set<Operation> performedOperations) {
		this.operationsHistory = performedOperations;
	}

	public ContactData getContactData() {
		return this.contactData;
	}

	public void setContactData(ContactData contactData) {
		this.contactData = contactData;
	}

}
